Figure 1-2 shows the Command panel of JBindery. This is the default panel that appears when you launch JBindery.
The Command panel determines the Java class to execute, the parameters to pass to the class's main method, and the locations to direct console input or output.
package.package.classname
without a
.class
extension. If desired, you can specify a slash (
/
) instead of the period (
.
) as a delimiter. The class you specify must contain a method with one of the following declarations:
public static void main (String args[])
public static void main()
If you launch JBindery by dragging a class file onto the JBindery icon, JBindery assumes the class name is the name of the file without the extension, and places this name in the Class Name field. For example, if the file is
biology.class
, the class name is assumed to be
biology
. If the name of the file does not correspond to the class containing the main method, you should enter the class name manually.
main()
method with no arguments. If no
main()
method is found in the class, JBindery creates a zero-length string array and calls the
main (String args[])
method.
main (String args[])
method. If no
main (String args[])
method exists in the class, then JBindery calls the
main()
method with no parameters.
main
method, it throws an exception.
JBindery considers spaces, tabs, and carriage returns as parameter delimiters. If you want to include such characters as part of a parameter, you must enclose the string in quotation marks (
" "
).
If you want to include quotation marks in your parameter, you must precede each instance with a backslash (
\
). For example, you would specify the string
He said, "Hi"
as
"He said, \"Hi\""
.
To specify Unicode strings, you should precede the Unicode value with
\x
.
System.out
or
System.err
). Selecting the pop-up menu displays the following options:
System.In
). Selecting the pop-up menu displays the following options:Along the bottom of the panel there are two buttons you use to control JBindery actions. These buttons appear on every panel.